package com.fmdj.bff.driver.service;

import com.fmdj.bff.driver.controller.form.ClearNewOrderQueueForm;
import com.fmdj.bff.driver.controller.form.ReceiveNewOrderMessageForm;
import com.fmdj.bff.driver.controller.form.SendPrivateMessageForm;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.ArrayList;


public interface NewOrderMessageService {


    void clearNewOrderQueue(ClearNewOrderQueueForm form);


    ArrayList receiveNewOrderMessage(ReceiveNewOrderMessageForm form);


    void sendPrivateMessage(@RequestBody @Valid SendPrivateMessageForm form);


    void sendPrivateMessageAsync(@RequestBody @Valid SendPrivateMessageForm form);
}
